package com.ibeeking.found.upms.service.common.constants;

/**
 * @ClassName RedisKeyConstant
 * @Description redisKey
 * @Author ibeeking
 * @Date 2020-06-29 14:54
 **/
public class RedisKeyConstant {

    /**
     * 模块
     */
    public static final String MODULE_G = "UPMS_G:";
    public static final String MODULE_B = "UPMS_B:";
    public static final String MODULE_S = "UPMS_S:";
    public static final String MODULE_CS = "UPMS_CS:";
    public static final String MODULE_CP = "UPMS_CP:";
    public static final String MODULE_CP_TP = "UPMS_CP_TP:";

    /**
     * 30天
     */
    public static final long MONTH = 10125 << 8L;
    /**
     * 1天
     */
    public static final long DAY = 675 << 7L;
    /**
     * 半天
     */
    public static final long HALF_DAY = 675 << 6L;
    /**
     * 1小时
     */
    public static final long HOUR = 225 << 4L;
    /**
     * 新会员临时缓存
     */
    public static final String USER_TEMP = "USER_TEMP:";
    /**
     * 用户
     */
    public static final String USER_INFO = "USER_INFO:";
    public static final String USER_PERMISSION = "USER_PERMISSION:";
    public static final String USER_TP_PERMISSION_GROUP = "USER_TP_PERMISSION_GROUP:";

    /**
     * 菜单
     */
    public static final String PERMISSION = "PERMISSION:";
    public static final String PERMISSION_TREE = "PERMISSION_TREE:";

    /**
     * 角色
     */
    public static final String ROLE = "ROLE:";
    public static final String SHOP_ROLE = "SHOP_ROLE:";
    public static final String ROLE_ADMINISTRATOR = "ROLE_ADMINISTRATOR:";

    public static final String CP_USSER_PREFIX = MODULE_CP + "EMPLOYEE:";
    /**
     * 资源
     */
    public static final String RESOURCE = "RESOURCE:";

    public static final String WX_CP_TP_SUITE_TICKET = "wx:cp:tp:suite_ticket:";

    public static final String WX_CP_TP_SUITE_ACCESS_TOKEN = "wx:cp:tp:suite_access_token:";

    public static final String WX_CP_DK_SUITE_TICKET = "wx:cp:dk:suite_ticket:";

    public static final String WX_CP_DK_SUITE_ACCESS_TOKEN = "wx:cp:dk:suite_access_token:";
}
